package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.system.api.domain.Signin;
import com.ruoyi.system.api.factory.RemoteSigninFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(contextId = "remoteSigninService",value = ServiceNameConstants.SYSTEM_SERVICE,fallbackFactory = RemoteSigninFallbackFactory.class)
public interface RemoteSigninService {

    @PostMapping("/signin/add")
    public AjaxResult add(@RequestBody Signin signin, @RequestHeader(SecurityConstants.FROM_SOURCE)String source);


    @PostMapping("/signin/getInfo")
    public AjaxResult getInfo(@RequestBody Signin signin,@RequestHeader(SecurityConstants.FROM_SOURCE)String source);

}
